/**
 * 
 */
package com.realgodo.site.entity;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.search.annotations.DocumentId;

@MappedSuperclass
public class IdEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1377211170147761387L;
	private Long id;

	@Id
	@DocumentId
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
